package org.jgs1904.spring.demo02.config;

import org.jgs1904.spring.demo02.diy.Audience;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author 墨苍璃
 * @date 2023年07月31日19时40分
 * //(proxyTargetClass = true) //强制CGLIB
 * //(exposeProxy = true) 在线程中暴露代理对象@EnableAspectJAutoProxy
 */
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@Configuration
@ComponentScan(value = "org.jgs1904.spring.demo02.service.impl")

public class ConcertConfig {

    @Bean
    public Audience audience() {
        return new Audience();
    }

}

